package com.lt.experiment06.mission02;

import java.util.List;

/**
 * @author LT
 * @version 1.0
 * @PackageName com.lt.experiment06.mission02
 * @ClassName SoftwarePerson
 * @Description to do
 * @date 2021/11/28 18:11
 */
public class HardwarePerson implements Observer,Display{
    int hp = 0;
    @Override
    public void update(int hp, int sp, int up) {
        this.hp = hp;
        if (this.hp == 1) {
            display();
        }
    }

    @Override
    public void display() {
        System.out.println("有硬件开发人员类别的合适的岗位");
    }
}
